Repository navigation
feat(risk): add offline P1 execution cost drift and TWR ladder - #820
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
AI assistance
Antigravity AI assistant drafted the offline P1 risk/performance modules and unit tests.
What changed
src/quant_platform_kit/risk/execution_cost_drift.py, Roadmap P1 Repo hygiene: align metadata and add CI baseline #1) evaluating adverse fill slippage (bps) and commission ratio with fail-closed promotion pause signals.src/quant_platform_kit/risk/twr_capital_ladder.py, Roadmap P1 Bump actions/checkout from 5 to 6 #2) using start-of-period external cash-flow timing aligned withflow_adjusted_hwm.py.quant_platform_kit.riskand added unit tests intests/test_execution_cost_drift.pyandtests/test_twr_capital_ladder.py.How verified
.venv/bin/pytest -q tests/test_execution_cost_drift.py tests/test_twr_capital_ladder.py tests/test_flow_adjusted_hwm.py tests/test_policy_v0_sizing.py(28 passed)..venv/bin/python -m ruff check src/quant_platform_kit/risk/execution_cost_drift.py src/quant_platform_kit/risk/twr_capital_ladder.py src/quant_platform_kit/risk/__init__.py tests/test_execution_cost_drift.py tests/test_twr_capital_ladder.py(all checks passed).Why
Prepares the offline P1 post-trade cost-drift guard and flow-invariant TWR capital-ladder metrics ahead of Phase 9
PAPERexecution.Risk